<layout name='Layout/ace_layout' />
{:W('PageHeader',array('name'=>'VIP','search'=>'M'))}
<form method="post" name="form_adv_search" id="form_adv_search">
	<div class="adv_search panel panel-default  display-none"  id="adv_search">
		<div class="panel-heading">
			<div class="row">
				<h4 class="col-xs-6">高级搜索</h4>
				<div class="col-xs-6 text-right">
					<a  class="btn btn-sm btn-info" onclick="submit_adv_search();">搜索</a>
					<a  class="btn btn-sm " onclick="close_adv_search();">关闭</a>
				</div>
			</div>
		</div>
		<div class="panel-body">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_vip_type">VIP类别：</label>
				<div class="col-sm-8">
					<select id="eq_vip_type" name="eq_vip_type">
						<option value="金卡" selected> 金卡</option>
						<option value="白金卡">白金卡</option>
						<option value="黑金卡">黑金卡</option>				
					</select>
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="li_paper_no">证件号：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="li_paper_no" name="li_paper_no" >
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="li_area">地区：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="li_area" name="li_area" >
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="li_active_shop">开卡店铺：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="li_active_shop" name="li_active_shop" >
				</div>
			</div>

			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="eq_name">姓名：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="eq_name" name="eq_name" >
				</div>
			</div>
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="li_active_shop">电话号：</label>
				<div class="col-sm-8">
					<input  class="form-control" type="text" id="li_active_shop" name="li_active_shop" >
				</div>
			</div>
		</div>
	</div>
</form>
<form id="form_data" name="form_data" method='post'>
	<div class="operate panel panel-default">
		<div class="panel-body">
			<div class="pull-left">
				<a class="btn btn-sm btn-danger" onclick="del();" >删除</a>
			</div>
			<div class="pull-right">
				<a class="btn btn-sm btn-primary" onclick="add();">新建</a>
			</div>
		</div>
	</div>
	<div class="ul_table border-top border-bottom">
		<empty name="list">
			<ul>
				<li class="no-data">
					没找到数据
				</li>
			</ul>
			<else/>
			<ul>
				<foreach name="list" item="vo">
					<li class="tbody">
						<div class="row">
							<div class="data" style="display:none">
								{$vo.letter}
							</div>
							<div class="tag" style="display:none">
								<php>
									echo($tag_data[$vo["id"]])
								</php>
							</div>
							<div class="col-sm-6 col-xs-12">
							<label class="inline pull-left col-3">
									<input class="ace" type="checkbox" name="id[]" value="{$vo.id}" />
									<span class="lbl"></span></label>
								<nobr>
									{$vo.area}
								<notempty name="vo.active_shop">
								- {$vo.active_shop}&nbsp;
								</notempty>
								</nobr>
							</div>
							<div class="col-sm-6 col-xs-12" >								
								<a style="padding-left:30px;" href="{:U('edit','id='.$vo['id'])}" class="data wrap">{$vo.name}-{$vo.vip_type}</a>
							</div>
						</div>
						<div class="row">
							<div  class="col-sm-6 col-xs-12" >
								<nobr style="padding-left:30px;">
									电话：
								</nobr>
								<nobr class="data">
									{$vo.office_tel}
									<notempty name="vo.mobile_tel">
										/ {$vo.mobile_tel}
									</notempty>
								</nobr>
							</div>
							<div  class="col-sm-6 col-xs-12">
								<nobr style="padding-left:30px;">
									<a href="{:U('sales','vip_id='.$vo['id'])}" class="data wrap">消费记录</a>
								</nobr>
							</div>
						</div>
					</li>
				</foreach>
			</ul>
		</empty>
	</div>
	<div class="pagination">
		{$page}
	</div>
</form>
